﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FortuneHeaven.Web.Common;
using FortuneHeavenBAL;
using FortuneHeavenCommon.DataMap;

namespace FortuneHeaven.Web.Pages.UserCenter
{
    public partial class ResetPassword : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageHeader(FortuneHeavenCommon.Enum.MainPageTabType.hidden);
            }

        }

        public void ChangePassword(object sender, EventArgs e)
        {
            AccountsInfoBO bo = new AccountsInfoBO();
            AccountsInfo infor = bo.GetLightAcountInfor(this.txtAcount.Text.Trim());
            if (infor == null)
            {
                ShowCurError("帐号不存在！");
            }
            else
            {
                Response.Redirect(Page.ResolveUrl("~/Pages/UserCenter/SetNewPassword.aspx") + "?userid=" + infor.UserID);
            }
        }

    }
}